<%@ page import="java.sql.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Futures Daily Basis Summary</title>
<style type="text/css">
<!--
.style3 {
	font-family: Arial;
	font-size: 12px;
}
-->
</style>
</head>
<body>
	  <table width="100%" height = "30"  border="1" cellpadding="0" cellspacing="0" bordercolor="#EEEEEE">
<%
dLoop=0;
Rs = task.fetchFuturesDailyBasisList();
while (Rs.next())
{
%>
        <tr id=<%=Rs.getInt("id")%> onDblClick=" CView_F(this);" onClick="highlightOn(this);">
          <td width="7%" align="center"><span class="style3"><%=Rs.getInt("id")%></span></td>
          <td width="13%" align="center"><span class="style3"><%=Utils.numberToStr(Rs.getDouble("closing_price"),2)%></span></td>
          <td width="14%" align="right"><span class="style3"><%=Utils.numberToStr(Rs.getDouble("low_price"),2)%></span></td>
          <td width="13%" align="center"><span class="style3"><%=Utils.numberToStr(Rs.getDouble("high_price"),2)%></span></td>
   		  <% 
		  	String Ter_dt = Utils.dateToStr(Rs.getDate("terminal_month"));
			if (Ter_dt.compareTo("")==0)
			{
				Ter_dt = "";
			}
			else
			{
				Ter_dt = Utils.dateToStr(Rs.getDate("terminal_month")).substring(3);
			}
		  %>
          <td width="13%" align="center"><span class="style3"><%=Ter_dt%></span></td>
          <td width="11%" align="center"><span class="style3"><%=Utils.numberToStr(Rs.getDouble("basis_price"),2)%></span></td>
          <td width="10%" align="right"><span class="style3"><%=Rs.getString("terminal_market")%></span></td>
        </tr>
<%
		dLoop=dLoop+1;
}
%>
</table>
</body>
</html>
